<!DOCTYPE html>
<html>
<head>
<title> Testcase for bug https://bugs.webkit.org/show_bug.cgi?id=85348 </title>
<!-- 
Issue: The focus ring used be drawn around the first row irrespective of the current focused row. The issue was fixed by the bug 
       http://www.webkit.org/b/92389 .
Description: The test case checks if the focus ring is drawn around currently focused table row.
Expectation: Focus ring must be drawn around the green box and not around the yellow boxes.
 -->
</head>
<body>
<style>
td {
    width: 50px;
    height: 50px;
    background:yellow;
 }
</style>
<table>
  <tr>
    <td></td>
  </tr>
  <tr id="row2" tabindex=0>
    <td style="background:green"></td>
  </tr>
  <tr tabindex=0>
    <td></td>
  </tr>
</table>
<script>
  document.getElementById('row2').focus();
</script>
</body>
</html>
